package UntilTest;

import com.CampusLife.until.DeleteImages;
import org.apache.commons.io.FileUtils;
import org.junit.Test;

import java.io.File;
import java.io.IOException;

import static org.apache.commons.io.FileUtils.deleteDirectory;

public class deletPictrue {
    @Test
        public  void decode() throws IOException {

        DeleteImages deleteImages = new DeleteImages();
        File url= new File("\\upload\\47fd9570-dbfc-4c10-9786-2a195f13fb4f92f9436e452e8cc292648164f5c9d71f.jpg");
         deleteImages.deleteDirectory(url);
        }
     @Test
     public  void  test01(){
            Integer f1 = 100, f2 = 100, f3 = 150, f4 = 150;
            System.out.println(f1 == f2);//常量
            System.out.println(f3.equals(f4));//地址
        }
        @Test
     public  void  test02(){
            String s1 = "Programming";
            String s2 = new String("Programming");
            String s3 = "Program";
            String s4 = "ming";
            String s5 = "Program" + "ming";
            String s6 = s3 + s4;
            System.out.println(s1 == s2);
            System.out.println(s1 == s5);
            System.out.println(s1 == s6);
            System.out.println(s1 == s6.intern());
            System.out.println(s2 == s2.intern());

        }
    }





